export default class DialogConfig {

    public getOrderReceiptConfig(config = {}): any {
        const defaultConfig = {
            type: 'confirm',
            title: '确认收货提醒',
            content: '确认收货后，货款将自动转入卖家账户。<br/>是否确认收货？',
            confirmBtn: {
                text: '确认',
                active: true,
                disabled: false,
                href: 'javascript:;',
            },
            cancelBtn: {
                text: '取消',
                active: false,
                disabled: false,
                href: 'javascript:;',
            },
        };
        return Object.assign(config, defaultConfig);
    }

    public getOrderCancelConfig(config = {}): any {
        const defaultConfig = {
            type: 'confirm',
            title: '订单关闭提醒',
            content: '关闭订单后将无法继续支付，请重新选购商品支付。<br/>是否确认取消订单？',
            confirmBtn: {
                text: '确认关闭',
                active: true,
                disabled: false,
                href: 'javascript:;',
            },
            cancelBtn: {
                text: '我在想想',
                active: false,
                disabled: false,
                href: 'javascript:;',
            },
        };
        return Object.assign(config, defaultConfig);
    }

    public getBecomeMemberConfig(config = {}): any {
        const defaultConfig = {
            type: 'confirm',
            title: '消息随便看，聊天不限制',
            content: '成为会员可以无限次与TA聊天，并享受尊贵的会员服务',
            confirmBtn: {
                text: '成为会员',
                active: true,
                disabled: false,
                href: 'javascript:;',
            },
            cancelBtn: {
                text: '我再想想',
                active: false,
                disabled: false,
                href: 'javascript:',
            },
        };
        return Object.assign(config, defaultConfig);
    }

    public transferAccountConfig(config = {},name:string): any {
        const defaultConfig = {
            type: 'confirm',
            title: '确认转账账户',
            content: `转入账户昵称为:${name}`,
            confirmBtn: {
                text: '确认',
                active: true,
                disabled: false,
                href: 'javascript:;',
            },
            cancelBtn: {
                text: '我要修改',
                active: false,
                disabled: false,
                href: 'javascript:',
            },
        };
        return Object.assign(config, defaultConfig);
    }

    public withdrawalConfig(config = {}): any {
        const defaultConfig = {
            type: 'confirm',
            title: '您还未绑定该转账账号',
            content: `是否去绑定？`,
            confirmBtn: {
                text: '确认',
                active: true,
                disabled: false,
                href: 'javascript:;',
            },
            cancelBtn: {
                text: '取消',
                active: false,
                disabled: false,
                href: 'javascript:',
            },
        };
        return Object.assign(config, defaultConfig);
    }
}
